package com.osgix.common.pojo;

import java.io.Serializable;

/**
 * <b>键值对象</b>
 */
public class KeyValue implements Serializable {

	private static final long serialVersionUID = -8310480559085785807L;

	/**
	 * Key
	 */
	private Object key;

	/**
	 * 值
	 */
	private Object value;

	/**
	 * 上级Key
	 */
	private Object superKey;

	/**
	 * 构造函数
	 * @param key
	 * @param value
	 */
	public KeyValue(Object key, Object value) {
		this.key = key;
		this.value = value;
	}

	public String toString() {
		return key + " / " + value.toString();
	}

	public Object getKey() {
		return key;
	}

	public void setKey(Object key) {
		this.key = key;
	}

	public Object getValue() {
		return value;
	}

	public void setValue(Object value) {
		this.value = value;
	}

	public Object getSuperKey() {
		return superKey;
	}

	public void setSuperKey(Object superKey) {
		this.superKey = superKey;
	}

}
